<?php

use Illuminate\Database\Migrations\Migration;

use Illuminate\Support\Facades\DB;

class ModifyStatusEnumInOrdersTable extends Migration
{
    public function up()
    {
        DB::statement("ALTER TABLE `orders` CHANGE `status` `status` ENUM('未支付','已支付','已取消','已退款','已处理','已发货','已签收','申请退货','退货已发出','已完成') NOT NULL DEFAULT '未支付' COMMENT '订单状态'");
    }

    public function down()
    {
        DB::statement("ALTER TABLE `orders` CHANGE `status` `status` ENUM('未支付','已支付','已取消','已退款') NOT NULL DEFAULT '未支付' COMMENT '订单状态'");
    }
}